package com.wulinbus.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wulinbus.dao.creative.CreativeOrderDAO;
import com.wulinbus.model.CreativeOrderModel;
import com.wulinbus.service.CreativeOrderService;
@Service
public class CreativeOrderServiceImpl implements CreativeOrderService{
	@Resource
	private CreativeOrderDAO creativeOrderDAO;
	
	public CreativeOrderModel getById(Integer order_id){
		return creativeOrderDAO.getById(order_id);
	}
	
	public CreativeOrderModel getByNum(String order_num){
		return creativeOrderDAO.getByNum(order_num);
	}
	
	public CreativeOrderModel getByUid(Integer cid,Integer uid){
		return creativeOrderDAO.getByUid(cid,uid);
	}

	public CreativeOrderModel getOrderPayByUid(Integer cid,Integer uid){
		return creativeOrderDAO.getOrderPayByUid(cid,uid);
	}
	
	public List<CreativeOrderModel> getList(Integer uid,Integer start, Integer count){
		return creativeOrderDAO.getList(uid, start, count);
	}
	
	public Integer getListCount(Integer uid){
		return creativeOrderDAO.getListCount(uid);
	}
	
	public List<CreativeOrderModel> getSellList(Integer cuid,Integer start, Integer count){
		return creativeOrderDAO.getSellList(cuid, start, count);
	}
	
	public Integer getSellListCount(Integer cuid){
		return creativeOrderDAO.getSellListCount(cuid);
	}
	
	public Integer insert(CreativeOrderModel order){
		return creativeOrderDAO.insert(order);
	}

	public Integer update(CreativeOrderModel order){
		return creativeOrderDAO.update(order);
	}
	
	public Integer updateByOrderNum(CreativeOrderModel order){
		return creativeOrderDAO.updateByOrderNum(order);
	}

	public Integer delete(Integer order_id){
		return creativeOrderDAO.delete(order_id);
	}
}
